home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Business Shareware
/
Business Shareware.iso
/
start
/
wordproc
/
me_cd25
/
max.mut
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1992-11-09
|
262 b
|
13 lines
;; max.mut : find the the maximum of a list of numbers
;; eg (max 1 2 3 4 5) returns 5
;; C Durland Public Domain
(defun max HIDDEN
{
(int n i)
(i (- (nargs) 1))(n (arg i))
(while (>= (-= i 1) 0) (if (< n (arg i)) (n (arg i))) )
n
})